package com.yimi.yinhepda.entity.bean;

/**
 * @author: lj
 * Date: 2020/4/18 17:35
 * Description:跨越子单明细实体
 */
public class KuaYueChildWaybillEntitiy {
    /**
     * 壹米运单号
     */
    private String waybillNo;

    /**
     * 壹米子单号
     */
    private String subWaybillNo;

    /**
     * 跨越运单号
     */
    private String outsideNo;

    /**
     * 跨越子单号
     */
    private String subOutsideNo;

    /**
     * 是否扫描：0-未扫，1-已扫
     */
    private int flag;
    /**
     * 运单类型：1-多货
     */
    private int wbType;
    /**
     * 托盘绑定：0-没有绑定数据，1-有绑定数据
     */
    private int isPalletBind;

    /**
     * 获取异常类型：少货和多货
     */
    public String getExceptionType() {
        if (flag == 0) {
            return "少货";
        } else if (wbType == 1) {
            return "多货";
        }
        return "";
    }

    public int getIsPalletBind() {
        return isPalletBind;
    }

    public void setIsPalletBind(int isPalletBind) {
        this.isPalletBind = isPalletBind;
    }

    public int getWbType() {
        return wbType;
    }

    public void setWbType(int wbType) {
        this.wbType = wbType;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getSubWaybillNo() {
        return subWaybillNo;
    }

    public void setSubWaybillNo(String subWaybillNo) {
        this.subWaybillNo = subWaybillNo;
    }

    public String getOutsideNo() {
        return outsideNo;
    }

    public void setOutsideNo(String outsideNo) {
        this.outsideNo = outsideNo;
    }

    public String getSubOutsideNo() {
        return subOutsideNo;
    }

    public void setSubOutsideNo(String subOutsideNo) {
        this.subOutsideNo = subOutsideNo;
    }
}
